package com.xiaocikuai.smallchunks.controller.Transaction;


import com.xiaocikuai.smallchunks.mapper.Transaction.RealOrderMapper;
import com.xiaocikuai.smallchunks.utils.resultd.Resultd;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 实体商品购买管理 前端控制器
 * </p>
 *
 * @author author1
 * @since 2024-07-13
 */
@RestController
@RequestMapping("/api/real-order")
@CrossOrigin
public class RealOrderController {

    @Resource
    RealOrderMapper realOrderMapper;

    @PostMapping("/getListInfo")
    public Resultd getListInfo(){
        return Resultd.ok().data("info", realOrderMapper.getListInfo()  );
    }

}
